package com.hyj.entity;

import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Data
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Component
public class Messages {
	
	@ApiModelProperty(value = "留言ID")
	@TableId(value = "mid", type = IdType.AUTO)
	private Integer mid;
	
	@ApiModelProperty(value = "用户ID")
	@TableId(value = "uid")
	private Integer uid;
	
	@ApiModelProperty(value = "学生ID")
	@TableId(value = "uid")
	private Integer sid;
	
	@ApiModelProperty(value = "学生姓名")
	@TableId(value = "sname")
	private String sname;
	
	@ApiModelProperty(value = "留言时间")
	@TableId(value = "times")
	private String times;


}
